import axios from '../../utils/axios'

// 作业列表
export const teachHomeworkList = (params: {}, method?: string) => {
    return axios({
        url: '/teach/homework/list',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 会员用户
export const teachHomeworkUser = (params: {}, method?: string) => {
    return axios({
        url: '/teach/homework/user',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 发布作业
export const teachHomeworkCreate = (params: {}, method?: string) => {
    return axios({
        url: '/teach/homework/create',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 编辑作业
export const teachHomeworkUpdate = (params: {}, method?: string) => {
    return axios({
        url: '/teach/homework/update',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 删除作业
export const teachHomeworkDeleted = (params?: {}, method?: string) => {
    return axios({
        url: '/teach/homework/deleted',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 作业提交列表
export const teachHomeworkSub = (params?: {}, method?: string) => {
    return axios({
        url: '/teach/homework/sub',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 批改作业
export const teachHomeworkCorrect = (params?: {}, method?: string) => {
    return axios({
        url: '/teach/homework/correct',
        method: method || 'get',
        data: {
            ...params
        }
    })
}
